package com.app.weexlearnmodule;

import android.app.Application;

import com.app.weexlearnmodule.adapter.GlideImageAdapter;
import com.app.weexlearnmodule.adapter.InterceptWXHttpAdapter;
import com.taobao.weex.InitConfig;
import com.taobao.weex.WXSDKEngine;

public class ZWeexLearnModule {

    public static void init(Application applicationContext) {

        InitConfig config = new InitConfig.Builder()
                //图片库接口
                .setImgAdapter(new GlideImageAdapter())
                //网络库接口
                //.setHttpAdapter(new InterceptWXHttpAdapter())
                .build();
        WXSDKEngine.initialize(applicationContext,config);

    }

}
